<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>选择微博主</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/selectweibohost.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/task/selecthost.js"></script>
<script type="text/javascript">
	//游客页面 js文件
	$(function() {
		//跟分页模块注册点击事件
		$(".pn")
				.click(
						function() {
							var pageNumber = $(this).text();
							window.location.href = "${pageContext.request.contextPath}/SelectHostSeverlet.do?currentPage="
									+ pageNumber;
							//$.get("${pageContext.request.contextPath}/SelectHostSeverlet.do",{currentPage:pageNumber});
						});
		$("#next_buttom")
				.click(
						function() {
							var currentPage = parseInt($("#currentPage").val()) + 1;
							window.location.href = "${pageContext.request.contextPath}/SelectHostSeverlet.do?currentPage="
									+ currentPage;
						});
		$("#befor_buttom")
				.click(
						function() {
							var currentPage = parseInt($("#currentPage").val()) - 1;
							window.location.href = "${pageContext.request.contextPath}/SelectHostSeverlet.do?currentPage="
									+ currentPage;
						});

	});
</script>
</head>
<body>
	<div class="maincontent">
		<div class="content">
			<%@include file="/common/header.jsp"%>
			<div id="daohang">
				<ul id="daohang_">
					<li style="margin-left: 0px; padding-left: 0px;"><span>博主资源</span></li>
					<li><span>成功案例</span></li>
					<li><span>精准数据</span></li>
					<li><span>专业服务</span></li>
					<li><span>关于我们</span></li>
				</ul>
				<div id="phone_free">免费资询电话：4008-517-517</div>
			</div>
			<div class="your_position">
				<span>当前位置：</span><span><a href="#this">博主资源</a></span><span><a
					href="#this">查看微博博主</a></span>
			</div>
			<div class="header_" id="header_">
				<div id="header_top">
					<span>查看微博博主</span> <img
						src="${pageContext.request.contextPath}/images/visitors/u71_line.png">
					<span>红人博主</span> <img
						src="${pageContext.request.contextPath}/images/visitors/u71_line.png">
					<span>名人博主</span> <img
						src="${pageContext.request.contextPath}/images/visitors/u71_line.png">
					<span>热门微博主</span> <img
						src="${pageContext.request.contextPath}/images/visitors/u71_line.png">
					<span>重点推荐</span>
				</div>
				<div id="header_middle" class="header_ss">
					<select><option>转发价</option>
						<option>直发价</option></select> <input type="text" style="width: 70px">
					<span>-</span> <input type="text" style="width: 70px"> <span>粉丝数：</span>
					<input type="text" style="width: 70px"> <span>-</span> <input
						type="text" style="width: 70px"> <select><option>常用微博主分类</option>
						<option>互联网</option></select> <input type="text" style="width: 90px"
						value="输入关键字">
					<div>Go</div>
					<input type="text" style="width: 90px" value="微博主名称">
					<div>Go</div>
				</div>
				<div id="header_bottom" class="header_ss">
					<span>排序：</span> <select><option>按粉丝量从高到低</option>
						<option>按粉丝量从低到高</option></select> <span>媒体平台：</span> <select><option>全部</option>
						<option>新浪微博</option></select> <span>所属地区：</span> <select><option>省份</option>
						<option>北京</option></select> <select><option>城市</option>
						<option>北京</option></select> <span>是否加V：</span> <input type="radio">
					<label>全部</label> <input type="radio"> <label>是</label> <input
						type="radio"> <label>否</label>

				</div>
			</div>
			<div class="split_line"></div>
			<div id="table_content"
				style="display: block; height: auto; width: inherit;">
				<table id="visitor_content" border="0" cellpadding="0"
					cellspacing="0">
					<thead>
						<tr>
							<th width="70"><a href="#" onclick="SelectAll();"><span>全选</span></a></th>
							<th width="206">微博主名称</th>
							<th width="80">粉丝数量</th>
							<th width="70">转评值</th>
							<th width="90">转发报价</th>
							<th width="90">直发报价</th>
							<th width="80">月订单量</th>
							<th width="70">周订单量</th>
							<th width="70">受众性别</th>
							<th width="50">详情</th>
							<th width="80">平台</th>
							<th width="64">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="host" items="${hostList}">
							<tr height="40">
								<td width="70"><input type="checkbox" name="weibohostbox"
									value="${host.HOST_ID}" /></td>
								<td width="206"><img src="${host.HOST_IMG }" width="50"
									height="50" /><span>${host.HOST_NAME }</span><span> <c:if
											test="${host.HOST_SEX=='男'}">
											<img
												src="${pageContext.request.contextPath}/images/common/nan.png"
												height="20" width="19" />
										</c:if> <c:if test="${host.HOST_SEX=='女'}">
											<img
												src="${pageContext.request.contextPath}/images/common/nv.png"
												height="20" width="17" />
										</c:if> ${host.HOST_ADDR }
								</span></td>
								<td width="80">${host.HOST_FS_NUMBER }&nbsp;</td>
								<td width="70">${host.HOST_ZP_VALUE }&nbsp;</td>
								<td width="90">${host.PERSON_ZHUANF_PRICE }&nbsp;</td>
								<td width="90">${host.PERSON_ZHIF_PRICE }&nbsp;</td>
								<td width="80">19&nbsp;</td>
								<td width="70">3&nbsp;</td>
								<td width="70">泛&nbsp;</td>
								<td width="50" align="center"><img
									src="${pageContext.request.contextPath}/images/common/detail.png"
									style="float: none" /></td>
								<td width="80">${host.PLAT_NAME}&nbsp;</td>
								<td width="64">收藏 |拉黑 举报假号</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<div id="add_allready">
				<table border="0" id="visitor_content1" cellpadding="0"
					cellspacing="0">
					<thead>
						<tr>
							<th width="250">微博主名称</th>
							<th width="120">粉丝数量</th>
							<th width="120">直发价格</th>
							<th width="120">粉丝单价</th>
							<th width="120">预计发送时间</th>
							<th width="238">操作</th>
						</tr>
					</thead>
					<tbody id="add_body">

					</tbody>
				</table>
			</div>
			<div style="clear: both;"></div>
			<%@include file="/common/fenye.jsp"%>
			<div style="clear: both;"></div>
			<div id="button_div">
				<div id="button_div_add">
					<span><input type="button" value="添加" class="text"
						onclick="add();" /></span> <span><input type="button"
						value="查看已选微博主" class="text" onclick="showadd();" /></span>
				</div>
				<div id="button_div_return">
					<span><input type="button" value="继续添加微博主" class="text"
						onclick="show_return();" /></span> <span><input type="button"
						value="确认提交任务" class="text" onclick="submit_task();" /></span>
				</div>
			</div>
			<%@include file="/common/footer.jsp"%>
		</div>
	</div>
	<div style="display: none;">
		<form name="task_host_form" id="task_host_form" method="post"
			action="${pageContext.request.contextPath}/SaveTaskHostSeverlet.do">
			<input type="hidden" id="host_id" name="host_ids" value="" />
		</form>
	</div>
</body>
</html>